import request from "@/utils/request"

export function list(obj) {
  return request({
    url: "/jobInterfaceDatasource/list",
    method: "get",
    params: obj
  })
}

export function del(obj) {
  return request({
    url: "/jobInterfaceDatasource/delete",
    method: "post",
    data: obj
  })
}

// export function statusUpdate(obj) {
//   return request({
//     url: "/jobInterfaceDatasource/delete",
//     method: "post",
//     data: obj
//   })
// }

export function add(obj) {
  return request({
    url: "/jobInterfaceDatasource/add",
    method: "post",
    data: obj
  })
}

export function update(obj) {
  return request({
    url: "/jobInterfaceDatasource/update",
    method: "post",
    data: obj
  })
}

export function call(obj) {
  return request({
    url: "/jobInterfaceDatasource/interface/call/" + obj.id,
    method: "get"
    // params: obj
  })
}

export function test(obj) {
  return request({
    url: "/jobInterfaceDatasource/interface/test",
    method: "post",
    data: obj
  })
}


